package com.sasis.model;
// Generated 2007-8-1 18:07:12 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="VIP_SERVICE_BOARDINGCHECK"
 *     
 */

public class VipServiceBoardingcheck extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer vipServiceSheetId;
    private String boardCheckAgent;
    private Timestamp boardCheckAgentDate;
    private String boardCheckRemark;
    private Integer boardCheckOperator;
    private Timestamp boardCheckOperateDate;


    // Constructors

    /** default constructor */
    public VipServiceBoardingcheck() {
    }

    
    /** full constructor */
    public VipServiceBoardingcheck(Integer vipServiceSheetId, String boardCheckAgent, Timestamp boardCheckAgentDate, String boardCheckRemark, Integer boardCheckOperator, Timestamp boardCheckOperateDate) {
        this.vipServiceSheetId = vipServiceSheetId;
        this.boardCheckAgent = boardCheckAgent;
        this.boardCheckAgentDate = boardCheckAgentDate;
        this.boardCheckRemark = boardCheckRemark;
        this.boardCheckOperator = boardCheckOperator;
        this.boardCheckOperateDate = boardCheckOperateDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="VIP_SERVICE_SHEET_ID"
     *             length="22"
     *         
     */

    public Integer getVipServiceSheetId() {
        return this.vipServiceSheetId;
    }
    
    public void setVipServiceSheetId(Integer vipServiceSheetId) {
        this.vipServiceSheetId = vipServiceSheetId;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOARD_CHECK_AGENT"
     *             length="64"
     *         
     */

    public String getBoardCheckAgent() {
        return this.boardCheckAgent;
    }
    
    public void setBoardCheckAgent(String boardCheckAgent) {
        this.boardCheckAgent = boardCheckAgent;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOARD_CHECK_AGENT_DATE"
     *             length="7"
     *         
     */

    public Timestamp getBoardCheckAgentDate() {
        return this.boardCheckAgentDate;
    }
    
    public void setBoardCheckAgentDate(Timestamp boardCheckAgentDate) {
        this.boardCheckAgentDate = boardCheckAgentDate;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOARD_CHECK_REMARK"
     *             length="1024"
     *         
     */

    public String getBoardCheckRemark() {
        return this.boardCheckRemark;
    }
    
    public void setBoardCheckRemark(String boardCheckRemark) {
        this.boardCheckRemark = boardCheckRemark;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOARD_CHECK_OPERATOR"
     *             length="22"
     *         
     */

    public Integer getBoardCheckOperator() {
        return this.boardCheckOperator;
    }
    
    public void setBoardCheckOperator(Integer boardCheckOperator) {
        this.boardCheckOperator = boardCheckOperator;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOARD_CHECK_OPERATE_DATE"
     *             length="7"
     *         
     */

    public Timestamp getBoardCheckOperateDate() {
        return this.boardCheckOperateDate;
    }
    
    public void setBoardCheckOperateDate(Timestamp boardCheckOperateDate) {
        this.boardCheckOperateDate = boardCheckOperateDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("vipServiceSheetId").append("='").append(getVipServiceSheetId()).append("' ");			
      buffer.append("boardCheckAgent").append("='").append(getBoardCheckAgent()).append("' ");			
      buffer.append("boardCheckAgentDate").append("='").append(getBoardCheckAgentDate()).append("' ");			
      buffer.append("boardCheckRemark").append("='").append(getBoardCheckRemark()).append("' ");			
      buffer.append("boardCheckOperator").append("='").append(getBoardCheckOperator()).append("' ");			
      buffer.append("boardCheckOperateDate").append("='").append(getBoardCheckOperateDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof VipServiceBoardingcheck) ) return false;
		 VipServiceBoardingcheck castOther = ( VipServiceBoardingcheck ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getVipServiceSheetId()==castOther.getVipServiceSheetId()) || ( this.getVipServiceSheetId()!=null && castOther.getVipServiceSheetId()!=null && this.getVipServiceSheetId().equals(castOther.getVipServiceSheetId()) ) )
 && ( (this.getBoardCheckAgent()==castOther.getBoardCheckAgent()) || ( this.getBoardCheckAgent()!=null && castOther.getBoardCheckAgent()!=null && this.getBoardCheckAgent().equals(castOther.getBoardCheckAgent()) ) )
 && ( (this.getBoardCheckAgentDate()==castOther.getBoardCheckAgentDate()) || ( this.getBoardCheckAgentDate()!=null && castOther.getBoardCheckAgentDate()!=null && this.getBoardCheckAgentDate().equals(castOther.getBoardCheckAgentDate()) ) )
 && ( (this.getBoardCheckRemark()==castOther.getBoardCheckRemark()) || ( this.getBoardCheckRemark()!=null && castOther.getBoardCheckRemark()!=null && this.getBoardCheckRemark().equals(castOther.getBoardCheckRemark()) ) )
 && ( (this.getBoardCheckOperator()==castOther.getBoardCheckOperator()) || ( this.getBoardCheckOperator()!=null && castOther.getBoardCheckOperator()!=null && this.getBoardCheckOperator().equals(castOther.getBoardCheckOperator()) ) )
 && ( (this.getBoardCheckOperateDate()==castOther.getBoardCheckOperateDate()) || ( this.getBoardCheckOperateDate()!=null && castOther.getBoardCheckOperateDate()!=null && this.getBoardCheckOperateDate().equals(castOther.getBoardCheckOperateDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getVipServiceSheetId() == null ? 0 : this.getVipServiceSheetId().hashCode() );
         result = 37 * result + ( getBoardCheckAgent() == null ? 0 : this.getBoardCheckAgent().hashCode() );
         result = 37 * result + ( getBoardCheckAgentDate() == null ? 0 : this.getBoardCheckAgentDate().hashCode() );
         result = 37 * result + ( getBoardCheckRemark() == null ? 0 : this.getBoardCheckRemark().hashCode() );
         result = 37 * result + ( getBoardCheckOperator() == null ? 0 : this.getBoardCheckOperator().hashCode() );
         result = 37 * result + ( getBoardCheckOperateDate() == null ? 0 : this.getBoardCheckOperateDate().hashCode() );
         return result;
   }   





}
